// coordconv.h

#ifndef COORDCONV_H
#define COORDCONV_H

#include "test.h"

class coordconv
{
public:
    coordconv();
    coordconv(double vx1, double vx2, double vy1, double vy2, double wx1, double wx2, double wy1, double wy2, double sx, double sy)
    {
        xmin = wx1;
        xmax = wx2;
        ymin = wy1;
        ymax = wy2;
        vxmin = vx1;
        vxmax = vx2;
        vymin = vy1;
        vymax = vy2;
        MAX_X = sx;
        MAX_Y = sy;

    }   //This will automatically set up the window and viewport, this works b/c it only needs to be done once

    coordconv(const coordconv &ccSource)
    {
        // copy constructor
        xmin = ccSource.xmin;
        xmax = ccSource.xmax;
        ymin = ccSource.ymin;
        ymax = ccSource.ymax;
        vxmin = ccSource.vxmin;
        vxmax = ccSource.vxmax;
        vymin = ccSource.vymin;
        vymax = ccSource.vymax;
        MAX_X = ccSource.MAX_X;
        MAX_Y = ccSource.MAX_Y;

    }
    coordconv& operator= (const coordconv &ccSource);

public:
    double xmin;
    double xmax;
    double ymin;
    double ymax;
    double vxmin;
    double vxmax;
    double vymin;
    double vymax;
    double MAX_X;
    double MAX_Y;

    void WindowtoViewPort(double &x, double &y);

};

#endif // COORDCONV_H
